<%@ page language="java" contentType="text/html; charset=UTF-8"  
pageEncoding="UTF-8"%>  
<%@ include file="/commons/taglibs.jsp" %>
<script src="${pageContext.request.contextPath}/asset/application.js">
</script>

<form:form action="${pageContext.request.contextPath}/HelloWorld/query" modelAttribute="selectorQuery">
<div class="container">
<div class="row">
	<div class="col-md-3">
	Name:
	</div>
	<div class="col-md-5">
	<form:input path="name" class="form-control"/>
	</div>
</div>
<div class="row">
	<div class="col-md-3">
	Selector:
	</div>
	<div class="col-md-5">
	<form:select path="selector" items="${selectorList }" class="form-control"></form:select>
	</div>
</div>
<div class="row">
<div class="col-md-3">
	
	</div>
	<div class="col-md-5">
	<form:button id="query" class="btn btn-success">查询</form:button>
	</div>
</div>

<c:if test="${ not empty image }">
<div class="row">
	<div class="col-md-3">
	Name:
	</div>
	<div class="col-md-5">
	<c:out value="${image.imageName }"></c:out>
	</div>
</div>
<div class="row">
	<div class="col-md-3">
	Selector:
	</div>
	<div class="col-md-5">
	<c:out value="${image.imageScreenSize }"></c:out>
	</div>
</div>
<div class="row">
	<div class="col-md-3">
	Image:
	</div>
	<div class="col-md-5">
	<img alt="" src="${image.imageLocation }">
	</div>
</div>
</c:if>
</div>
</form:form>